$params
$params : array
Class configuration parameters.
Class for parsing MIME messages
$params : array
Class configuration parameters.
__construct(array $params = []) : mixed
Constructor.
Sets up the object, initialize the variables, and splits and stores the header and body of the input.
array | $params | An array of various parameters that determine various things: include_bodies - Whether to include the body in the returned object. decode_bodies - Whether to decode the bodies of the parts. (Transfer encoding) decode_headers - Whether to decode headers crlf - CRLF type to use (CRLF/LF/CR) |
do_decode(string $headers, string $body, string $default_ctype = 'text/plain') : object|bool
Performs the decoding. Decodes the body string passed to it If it finds certain content-types it will call itself in a recursive fashion
string | $headers | Header section |
string | $body | Body section |
string | $default_ctype | Default content type |
Decoded results or False on error
parseHeaderValue(string $input) : array
Function to parse a header value, extract first part, and any secondary parts (after ;) This function is not as robust as it could be.
Eg. header comments in the wrong place will probably break it.
string | $input | Header value to parse |
Contains parsed result
structure_part(object $part, int $count, string $parent = '') : object
Recursive method to convert a rcube_mime_decode structure into a rcube_message_part object.
object | $part | A message part struct |
int | $count | Part count |
string | $parent | Parent MIME ID |
rcube_message_part